package com.freesky.biz.icbc.model;

import com.icbc.api.AbstractIcbcRequest;
import com.icbc.api.BizContent;
import com.icbc.api.internal.util.fastjson.annotation.JSONField;

public class MybankPayDigitalWalletPhonetoopenidRequestV1 extends AbstractIcbcRequest<MybankPayDigitalWalletPhonetoopenidResponseV1> {

    @Override
    public Class<MybankPayDigitalWalletPhonetoopenidResponseV1> getResponseClass() {
        return MybankPayDigitalWalletPhonetoopenidResponseV1.class;
    }

    @Override
    public boolean isNeedEncrypt() {
        return false;
    }

    @Override
    public Class<? extends BizContent> getBizContentClass() {
        return MybankPayDigitalWalletPhonetoopenidRequestV1Biz.class;
    }

    @Override
    public String getMethod() {
        return "POST";
    }

    public static class MybankPayDigitalWalletPhonetoopenidRequestV1Biz implements BizContent {

        @JSONField(name = "chantype")
        private int chanType;

        @JSONField(name = "instruction_id")
        private String instructionId;

        @JSONField(name = "merchant_id")
        private String merchantId;

        @JSONField(name = "sub_merchant_id")
        private String subMerchantId;

        @JSONField(name = "auth_type")
        private String authType;

        @JSONField(name = "auth_code")
        private String authCode;

        @JSONField(name = "bak1")
        private String bak1;

        @JSONField(name = "bak2")
        private String bak2;

        public int getChanType() {
            return chanType;
        }

        public void setChanType(int chanType) {
            this.chanType = chanType;
        }

        public String getInstructionId() {
            return instructionId;
        }

        public void setInstructionId(String instructionId) {
            this.instructionId = instructionId;
        }

        public String getMerchantId() {
            return merchantId;
        }

        public void setMerchantId(String merchantId) {
            this.merchantId = merchantId;
        }

        public String getSubMerchantId() {
            return subMerchantId;
        }

        public void setSubMerchantId(String subMerchantId) {
            this.subMerchantId = subMerchantId;
        }

        public String getAuthType() {
            return authType;
        }

        public void setAuthType(String authType) {
            this.authType = authType;
        }

        public String getAuthCode() {
            return authCode;
        }

        public void setAuthCode(String authCode) {
            this.authCode = authCode;
        }

        public String getBak1() {
            return bak1;
        }

        public void setBak1(String bak1) {
            this.bak1 = bak1;
        }

        public String getBak2() {
            return bak2;
        }

        public void setBak2(String bak2) {
            this.bak2 = bak2;
        }
    }
}
